/*
 * @Author: wang cong wangc9832@163.com
 * @Date: 2023-08-24 09:26:26
 * @LastEditors: wang cong wangc9832@163.com
 * @LastEditTime: 2023-09-25 09:17:49
 * @FilePath: /ams_product_front/src/api/visualization/amsProjectVisualization.ts
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
import { downloadBlob } from '@/utils/file/download';
const api = '/amsProjectVisualization';
// 项目可视化_根据父容器id查询
export const findByParentId = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/findByParentId', params });
// 项目可视化_编辑
export const edit = (params?: any) =>
  defHttp.post({ url: api + '/edit', params });
// 项目可视化_删除
export const del = (ids: string[]) =>
  defHttp.post({ url: api + '/delete', params: ids });
// 项目可视化_增加
export const add = (params?: any) =>
  defHttp.post({ url: api + '/add', params });
// 项目可视化_批量增加
export const addBatch = (params?: any) =>
  defHttp.post({ url: api + '/addBatch', params });
// 项目可视化_批量更新
export const batchUpdate = (params?: any) =>
  defHttp.post({ url: api + '/batchUpdate', params });
// 项目可视化_查询资产可视化信息
export const getAssetVisualizationInfo = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({
    url: api + '/getAssetVisualizationInfo',
    params,
  });
// 项目可视化_查询查询楼栋列表
export const getBuildingList = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/getBuildingList', params });
// 项目可视化_查询查询资产列表
export const getAssetList = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/getAssetList', params });
// 项目可视化_查询楼栋可视化信息
export const getBuildingtVisualizationInfo = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({
    url: api + '/getBuildingtVisualizationInfo',
    params,
  });
// 项目可视化_根据id查询
export const findById = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/findById', params });
